<?php
mysql_select_db($database_konek, $konek);
$query_past = "SELECT * FROM textplug WHERE id = $pilih_sett";
$past = mysql_query($query_past, $konek) or die(mysql_error());
$row_past = mysql_fetch_assoc($past);
$totalRows_past = mysql_num_rows($past);
$judulplug=$row_past['judul'];
$kontenplug=$row_past['konten'];
echo '<div class="'.$classjudul.'">'.$judulplug.'</div><div class="'.$classcontent.'">'.$kontenplug.'</div>';

mysql_free_result($past);
?>